﻿using System;

namespace HML
{
    /// <summary>
    /// 导航栏按钮操作后事件参数
    /// </summary>
    public class TabControlPlusNavigationButtonOperatedEventArgs : EventArgs
    {
        private readonly bool forward;
        /// <summary>
        /// 如果为 true 则所有TabItem向前移；如果为 false 则所有TabItem向后移
        /// </summary>
        public bool Forward
        {
            get { return this.forward; }
        }

        private readonly int currentFirstTabItemIndex;
        /// <summary>
        /// 当前选项卡左边出现的第一个选项索引
        /// </summary>
        public int CurrentFirstTabItemIndex
        {
            get { return this.currentFirstTabItemIndex; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="forward">如果为 true 则所有TabItem向前移；如果为 false 则所有TabItem向后移</param>
        /// <param name="currentFirstTabItemIndex">当前选项卡左边出现的第一个选项索引</param>
        public TabControlPlusNavigationButtonOperatedEventArgs(bool forward, int currentFirstTabItemIndex)
        {
            this.forward = forward;
            this.currentFirstTabItemIndex = currentFirstTabItemIndex;
        }

    }

}
